﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="UserWfConfig.aspx.cs" Inherits="Enterprise.UI.Web.Modules.UserConfig.UserWfConfig" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="vDaohangtiaoHolder module">
        <div class="vDaohangtiao">
            <ul>
                <li class="first">
                    <a href="/index.aspx" title="首页">首页</a>
                </li>
                <li class="last">
                    审批授权
                </li>
            </ul>
        </div>
    </div>
    <Ent:HeadMenuWeb ID="HeadMenu1" runat="server">
        <Ent:HeadMenuButtonItem ButtonIcon="edit.gif" ButtonName="设置授权" ButtonPopedom="Edit" ButtonUrl="UserWfConfigManage.aspx" ButtonUrlType="Href" /> 
    </Ent:HeadMenuWeb>
    <div id="contents">
        <div style="padding: 5px;">
            <asp:GridView ID="GridView1" runat="server" DataKeyNames="CID" CssClass="GridViewStyle"
                AutoGenerateColumns="False" Width="100%" AllowPaging="True" OnRowCommand="GridView1_OnRowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="人员">
                        <ItemTemplate>
                           <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("USERID")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="审批流程">
                        <ItemTemplate>
                           <%#Enterprise.Infrastructure.Utility.GetWorkFlowName((int)Eval("WFTYPEID"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="授权给人员">
                        <ItemTemplate>
                           <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("SQUSERID"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="ENDTIME" HeaderText="有效时间" DataFormatString="{0:yyyy-MM-dd}">
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="是否启用">
                        <ItemTemplate>
                           <%#(int)Eval("ISUSED")==0?"未启用":"已启用" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="90">
                        <ItemTemplate>                           
                            <asp:LinkButton ID="LinkButton3" CommandName="mDelete" CommandArgument='<%#Container.DataItemIndex  %>'
                                OnClientClick="return confirm('确定要删除该记录？删除将无法恢复')" runat="server">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                暂无授权，需要设置授权请点击顶部“设置授权”按钮。
                </EmptyDataTemplate>
                <HeaderStyle CssClass="GridViewHeaderStyle" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <RowStyle CssClass="GridViewRowStyle" />                
            </asp:GridView>
        </div>
    </div>
</asp:Content>
